FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG JAR_FILE
ARG JAR_FILE_NAME
COPY src/main/resources/application*.properties /feastbooking/config/
COPY startup.sh /feastbooking/
COPY ${JAR_FILE} /feastbooking/
ENV APP_JAR /feastbooking/${JAR_FILE_NAME}
ENTRYPOINT ["sh","/feastbooking/startup.sh"]